package com.binary.file.device;

import java.util.Arrays;

/**
 * Created by Administrator on 2017/5/26.
 */
public class RecordDataEntity {
	public static int RecordSize = 2 + 1 + 2 + 1 + 1 * 4 + 2 + 8 + 8 + 4 + 8
			+ 4 + 4 + 1023 * 8;// 算准总字节数对于连续读取很重要
	short carCode;// 2
	byte deviceInfo;// 1
	short year;// 2
	byte mouth;// 1
	byte day;// 1
	byte hour;// 1
	byte minute;// 1
	byte second;// 1
	short miniSecond;// 2
	double latitude;// 维度 8
	double longitude;// 经度8
	int height;// 4
	long beginHz;// 8
	int step;// 4
	int hzPoint;// 4
	double[] testData = new double[1023];// 8*1023

	public short getCarCode() {
		return carCode;
	}

	public void setCarCode(short carCode) {
		this.carCode = carCode;
	}

	public byte getDeviceInfo() {
		return deviceInfo;
	}

	public void setDeviceInfo(byte deviceInfo) {
		this.deviceInfo = deviceInfo;
	}

	public short getYear() {
		return year;
	}

	public void setYear(short year) {
		this.year = year;
	}

	public byte getMouth() {
		return mouth;
	}

	public void setMouth(byte mouth) {
		this.mouth = mouth;
	}

	public byte getDay() {
		return day;
	}

	public void setDay(byte day) {
		this.day = day;
	}

	public byte getHour() {
		return hour;
	}

	public void setHour(byte hour) {
		this.hour = hour;
	}

	public byte getMinute() {
		return minute;
	}

	public void setMinute(byte minute) {
		this.minute = minute;
	}

	public byte getSecond() {
		return second;
	}

	public void setSecond(byte second) {
		this.second = second;
	}

	public short getMiniSecond() {
		return miniSecond;
	}

	public void setMiniSecond(short miniSecond) {
		this.miniSecond = miniSecond;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public long getBeginHz() {
		return beginHz;
	}

	public void setBeginHz(long beginHz) {
		this.beginHz = beginHz;
	}

	public int getStep() {
		return step;
	}

	public void setStep(int step) {
		this.step = step;
	}

	public int getHzPoint() {
		return hzPoint;
	}

	public void setHzPoint(int hzPoint) {
		this.hzPoint = hzPoint;
	}

	public double[] getTestData() {
		return testData;
	}

	public void setTestData(double[] testData) {
		this.testData = testData;
	}

	@Override
	public String toString() {
		return "RecordDataEntity [carCode=" + carCode + ", deviceInfo="
				+ deviceInfo + ", year=" + year + ", mouth=" + mouth + ", day="
				+ day + ", hour=" + hour + ", minute=" + minute + ", second="
				+ second + ", miniSecond=" + miniSecond + ", latitude="
				+ latitude + ", longitude=" + longitude + ", height=" + height
				+ ", beginHz=" + beginHz + ", step=" + step + ", hzPoint="
				+ hzPoint + ", testData=" + Arrays.toString(testData) + "]";
	}

}
